package com.gjintel.auction.business.websocket.model;

import com.gjintel.framework.user.model.User;

import javax.servlet.http.HttpSession;
import javax.websocket.Session;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/11/20.
 */
public class WebSocketInfo {

    private User user;//用户数据

    private String code;//项目ID

    private boolean isStop;//是否处于禁拍阶段

    private boolean isEntryAble;//是否通过报名

    private int depositStatus = -1;//保证金为0，不需要缴纳//已交为1,未交为0,错误  为 -1

    private HttpSession httpSession;

    private Session session;

    public WebSocketInfo(User user, String code, boolean isStop, boolean isEntryAble, int depositStatus, HttpSession httpSession, Session session) {
        this.user = user;
        this.code = code;
        this.isStop = isStop;
        this.isEntryAble = isEntryAble;
        this.depositStatus = depositStatus;
        this.httpSession = httpSession;
        this.session = session;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isEntryAble() {
        return isEntryAble;
    }

    public void setEntryAble(boolean entryAble) {
        isEntryAble = entryAble;
    }

    public boolean isStop() {
        return isStop;
    }

    public void setStop(boolean stop) {
        isStop = stop;
    }

    public int getDepositStatus() {
        return depositStatus;
    }

    public void setDepositStatus(int depositStatus) {
        this.depositStatus = depositStatus;
    }

    public HttpSession getHttpSession() {
        return httpSession;
    }

    public void setHttpSession(HttpSession httpSession) {
        this.httpSession = httpSession;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }
}
